from user import User


class Admin(User):
    """管理员类"""

    def __init__(self, first_name, last_name):
        super().__init__(first_name, last_name)

        self.privileges = ["can add post", "can delete post", "can be user"]

    def show_privileges(self):
        """显示管理员的权限"""
        print(f"Admin {self.first_name} {self.last_name} has privileges: {self.privileges}")


if __name__ == '__main__':
    admin = Admin("王", "富贵")
    admin.show_privileges()
